package net.service;


import net.pojo.Artile;

import net.pojo.Comments;
import net.pojo.Dicuss;
import net.pojo.Links;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface AdminService {
    List<Artile> findAll();

    List<Artile> search(String ptags, String ptitle);

    int deleteById(Integer pid);

    Artile findById(Integer pid);

    int updateArtile(Artile artile,@RequestParam(value = "uploadFile",required = false)MultipartFile uploadFile, HttpServletRequest request);

    int addArtile(Artile artile, @RequestParam(value = "uploadFile",required = false)MultipartFile uploadFile, HttpServletRequest request);

    List<Dicuss> findAllDicuss();

    int deleteDicuss(Integer did);

    List<Comments> findAllComment();

    int deleteComments(Integer cid);

    List<Links> findLinks();

    int deleteLinks(Integer lid);

    int updateLinks(Links links);

    Links findLinkById(Integer lid);

    List<Artile> searchNum();
}
